import { http } from "@/utils/http";

import { whReqBaseUrl as VITE_REQUEST_BASE_SAAS_API } from "@/api/common";

import { type requestResultType } from "@/api/types";
/**
 *
 * @param tablename
 * @param cityId
 * @returns
 */
export function loginApi(data) {
  return http.request<requestResultType>(
    "post",
    `${VITE_REQUEST_BASE_SAAS_API}/users/login`,
    {
      data
    }
  );
}
